side1 = eval(input())
side2 = eval(input())
side3 = eval(input())

perimeter = side1 + side2 + side3
s = perimeter / 2 
area = ( s * (s-side1) * (s-side2) * (s-side3) ) ** 0.5

print("{0:.2f}".format(perimeter))
print("{0:.2f}".format(area))

